﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Mock1G3.BaseEntities;
using Mock1G3.DataAccess;
using System.Data;

namespace Mock1G3.BussinessLogic
{
    public class ValidateLogic
    {
        public static bool CheckCardNo(Card card)
        {
            return DataAccess.ValidateAccess.CheckCardNo(card);
        }

        public static bool CheckCard(Card card)
        {
            return DataAccess.ValidateAccess.CheckCard(card);
        }

        public static DataTable Table(Card card)
        {
            return DataAccess.ValidateAccess.Table(card);
        }

        public static bool CheckExpiredDate(Card card)
        {
            return DataAccess.ValidateAccess.CheckExpiredDate(card);
        }

        public static bool CheckStatus(Card card)
        {
            return DataAccess.ValidateAccess.CheckStatus(card);
        }

        public static int CheckAttempt(Card card)
        {
            return DataAccess.ValidateAccess.CheckAttempt(card);
        }

        public static void UpdateAttempt(Card card)
        {
            DataAccess.ValidateAccess.UpdateAttempt(card);
        }

        public static bool UpdatePin(Card card)
        {
            return DataAccess.ValidateAccess.UpdatePin(card);
        }

        public static bool WriteLog(Log log)
        {
            return DataAccess.ValidateAccess.WriteLog(log);
        }
    }
}